/**
 * @properties={typeid:35,uuid:"FCC00AF9-EF2A-4407-BFDE-66BFF45B39EB",variableType:4}
 */
var gUservID = null;

/**
 * Callback method for when solution is opened.
 *
 * @properties={typeid:24,uuid:"3FC018D9-C0CA-45E9-844C-2E027D52362B"}
 */
function onSolutionOpen() {
	application.showFormInDialog(forms.login,-1,-1,-1,-1,'LOGIN',false,false,'LOGIN',true)
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"2AA3DB63-A778-4347-873B-4DBFD15D97FC"}
 */
function salir(event) {
	application.closeSolution()
}

/**
 * @properties={typeid:24,uuid:"0FEC0988-61AA-46DA-8A16-2F41616B4A93"}
 */
function dividepor100() {
	var $nomenclador = databaseManager.getFoundSet('medicos','nomenclador')
	
	$nomenclador.loadAllRecords()
	var $cant = databaseManager.getFoundSetCount($nomenclador)
	for (var i = 1 ; i <= $cant ; i++)
	{
		$nomenclador.setSelectedIndex(i)
		$nomenclador.gastos = $nomenclador.gastos / 100
		$nomenclador.hon_anestesista 	= $nomenclador.hon_anestesista / 100
		$nomenclador.hon_ayudante		= $nomenclador.hon_ayudante / 100
		$nomenclador.hon_especialista	= $nomenclador.hon_especialista / 100
	}
}
